﻿using AutoMapper;
using MyCompany.MyProject.Model.DTO;
using MyCompany.MyProject.Model.Logs;
using MyCompany.MyProject.Model.Models;
using MyCompany.MyProject.Model.Models.Tenants;

namespace MyCompany.MyProject.Extensions.ServiceExtensions;

public class CustomProfile : Profile
{
    public CustomProfile()
    {
        //CreateMap<SysUserInfo, UserVo>()
        //     .ForMember(a => a.Id, o => o.MapFrom(d => d.Id))
        //        .ForMember(a => a.RIDs, o => o.MapFrom(d => d.RIDs))
        //        .ForMember(a => a.Address, o => o.MapFrom(d => d.Address))
        //        .ForMember(a => a.Age, o => o.MapFrom(d => d.Age))
        //        .ForMember(a => a.Birth, o => o.MapFrom(d => d.Birth))
        //        .ForMember(a => a.Status, o => o.MapFrom(d => d.Status))
        //        .ForMember(a => a.UpdateTime, o => o.MapFrom(d => d.UpdateTime))
        //        .ForMember(a => a.CreateTime, o => o.MapFrom(d => d.CreateTime))
        //        .ForMember(a => a.ErrorCount, o => o.MapFrom(d => d.ErrorCount))
        //        .ForMember(a => a.LastErrTime, o => o.MapFrom(d => d.LastErrorTime))
        //        .ForMember(a => a.LoginName, o => o.MapFrom(d => d.LoginName))
        //        .ForMember(a => a.LoginPWD, o => o.MapFrom(d => d.LoginPWD))
        //        .ForMember(a => a.Remark, o => o.MapFrom(d => d.Remark))
        //        .ForMember(a => a.RealName, o => o.MapFrom(d => d.RealName))
        //        .ForMember(a => a.Name, o => o.MapFrom(d => d.Name))
        //        .ForMember(a => a.IsDelete, o => o.MapFrom(d => d.IsDeleted))
        //        .ForMember(a => a.RoleNames, o => o.MapFrom(d => d.RoleNames))
        //    .ReverseMap();
        //CreateMap<Role, RoleVo>().ReverseMap();
        //CreateMap<CreateRoleVo, Role>().ReverseMap();
        //CreateMap<UpdateRoleVo, Role>().ReverseMap();

        //CreateMap<Department, DepartmentVo>().ReverseMap();
        //CreateMap<AuditSqlLog, AuditSqlLogVo>().ReverseMap();
        //CreateMap<BusinessTable, BusinessTableVo>().ReverseMap();
        //CreateMap<MultiBusinessTable, MultiBusinessTableVo>().ReverseMap();
        //CreateMap<SysTenant, SysTenantVo>().ReverseMap();
        //CreateMap<SubLibraryBusinessTable, SubLibraryBusinessTableVo>().ReverseMap();

        //CreateMap<UserRole, UserRoleVo>().ReverseMap();

        //CreateMap<RoleModulePermission, RoleModulePermissionVo>().ReverseMap();

        //CreateMap<Modules, ModulesVo>().ReverseMap();

        //CreateMap<Permission, PermissionVo>().ReverseMap();
    }
}
